package com.itheima.d10_api_object;
/*
    Object类 :
        toString方法
        equals方法
 */
public class Test1 {
    public static void main(String[] args) {
        Student s = new Student("xiaoming ",16);
        Student s2 = new Student("xiaoming ",16);
//        String s1 = s.toString();
//        System.out.println(s1);
//        System.out.println(s);
        System.out.println(s.hashCode());
        System.out.println(s.equals(s2));

    }
}












